package com.neusoft.elm_servlet.service.impl;

import java.sql.SQLException;

import com.neusoft.elm_servlet.dao.UserDao;
import com.neusoft.elm_servlet.dao.impl.UserDaoImpl;
import com.neusoft.elm_servlet.po.User;
import com.neusoft.elm_servlet.service.UserService;

public class UserServiceImpl implements UserService{

	UserDao userDao = new UserDaoImpl();
	
	@Override
	public User getUserByIdByPass(String userId, String password) throws SQLException {
		return userDao.getUserByIdByPass(userId,password);
	}

	@Override
	public int saveUser(User user) throws SQLException {
		return userDao.saveUser(user);
	}

	@Override
	public int getUserById(String userId) throws SQLException {
		return userDao.getUserById(userId);
	}

}
